#ifndef QOPENCVWIDGET_H
#define QOPENCVWIDGET_H

#include <QWidget>
#include <opencv/cv.h>
#include <QPixmap>
#include <QLabel>
#include <QVBoxLayout>
#include <QImage>

/*
  QOpenCVWidget allows to display OpenCV images.

  Basicaly, it translates IplImage to QImage.
 */
class QOpenCVWidget : public QWidget
{
public:
    QLabel *imagelabel;
    QVBoxLayout *layout;

    QImage image;
public:
    QOpenCVWidget(QWidget *parent = 0);
    void putImage(IplImage *cvimage);
};

#endif // QOPENCVWIDGET_H
